﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Home.WebUI.Areas.Admin.Models.CompanyViewModel
{
    public class CreateViewModel
    {
        /// <summary>
        /// 公司简介Id
        /// </summary>
        [DisplayName("公司简介Id")]
        public int? Id { set; get; }
        /// <summary>
        /// 标题
        /// </summary>
        [Required(ErrorMessage = "标题不能为空")]
        [StringLength(50, ErrorMessage = "长度不能超过50个字符")]
        [DisplayName("标题")]
        public string Title { set; get; }
        /// <summary>
        /// 内容
        /// </summary>
        [Required(ErrorMessage = "内容不能为空")]
        [DisplayName("内容")]
        public string Body { set; get; }
    }
}